package com.java01.designpattern.singleton;

public class Singleton1 {

	private static Singleton1 self;
	
	private Singleton1(){
	}
	
	public static Singleton1 getInstance(){
		if(self==null){
			self = new Singleton1();
		}
		return self;
	}
	
	public static void main(String[] args) {
		Singleton1.getInstance();
	}
}
